<h1>Listing rooms</h1>

<table>
  <tr>
    <th>Room</th>
    <th>Players</th>
  </tr>

<% for room in @rooms %>
  <tr>
    <td><%= link_to "Room #{room.id}", room %></td>
    <td><%=h room.players.length %> / 
	<%=h room.min_players %> - <%=h room.max_players %></td>
    <!--
    <td><%= link_to 'Show', room %></td>
    <td><%= link_to 'Edit', edit_room_path(room) %></td>
    <td><%= link_to 'Destroy', room, :confirm => 'Are you sure?', :method => :delete %></td>
    -->
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New room', new_room_path %>
